package cn.sofwin.day0120.homework.custom;

public class CustomerBiz {
String[] name;
int size;

    public void addName(String name){
        this.name[size++] = name;
        System.out.print("继续输入吗？（y/n）：");
    }

    public void showName(){
        System.out.println("*****************");
        System.out.println("客户姓名列表");
        System.out.println("*****************");
        for (int i = 0; i < size; i++) {
            System.out.print(name[i] + "\t");
        }
    }
}
